<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    Object obj=session.getAttribute("login_user");
    if(obj==null){
      response.sendRedirect("login.jsp");
      return;
    }
    //判断角色或权限
%>
必须登录才能访问<br>
<a href="logout.jsp">注销</a>
</body>
</html>
